﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class BUSNguyenVatLieu
    {
        public static DataTable getAll()
        {
            return DAONguyenVatLieu.getAll();
        }

        public static int add(DTONguyenVatLieu obj)
        {
            return DAONguyenVatLieu.add(obj);
        }

        public static int edit(DTONguyenVatLieu obj, string old_ma)
        {
            return DAONguyenVatLieu.edit(obj, old_ma);
        }

        public static int del(DTONguyenVatLieu obj)
        {
            return DAONguyenVatLieu.del(obj);
        }

        public static bool checkDuplicate(DTONguyenVatLieu obj, string old_ma)
        {
            return DAONguyenVatLieu.checkDuplicate(obj, old_ma);
        }
    }
}
